home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96a.txt / 000114_icon-group-sender _Mon May 6 21:38:40 1996.msg < prev    next >
Internet Message Format  |  1996-09-05  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 7 May 1996 06:31:33 MST
  2. Message-Id: <318E6350.29CA@tees.ac.uk>
  3. Date: Mon, 06 May 1996 21:38:40 +0100
  4. From: Hamish Lawson <H.Lawson@tees.ac.uk>
  5. Organization: University of Teesside, School of Computing and Maths
  6. X-Mailer: Mozilla 2.01Gold (Win95; I)
  7. Mime-Version: 1.0
  8. To: Icon group <icon-group@cs.arizona.edu>
  9. Subject: Regular expression to Icon converter
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13. Status: O
  14.  
  15. I know that regexp.icn in the Icon Program Library contains procedures for 
  16. doing regular-expression matching, but has anyone written a program that will 
  17. convert a regular expression into equivalent Icon code?
  18.  
  19. For example, given the string
  20.     ^ab+
  21. the program produces
  22.     ="a" & move(many('b'))
  23.  
  24. Such a utility could be useful to those coming to Icon with experience in REs, 
  25. or to those wanting to convert Perl code to Icon.
  26.  
  27. | Hamish Lawson, School of Computing and Mathematics, 
  28. | University of Teesside, Middlesbrough, Cleveland, UK, TS1 3BA 
  29. | Tel: +44 1642 212695  Fax: +44 1642 342604
  30. | E-mail: H.Lawson@tees.ac.uk
  31.  
  32.  
  33.